//
//  AKUIManager.h
//  GSCalendar
//
//  Created by GSmini on 2018/9/18.
//  Copyright © 2018年 tanyin. All rights reserved.
//

//判断是否是ipad
#define isPad ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
//判断iPhone4系列 320*480
#define kiPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) && !isPad : NO)
//判断iPhone5系列 320*568
#define kiPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) && !isPad : NO)
//判断iPhone6\7\8系列，4.7寸屏 375*667
#define kiPhone_47 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) && !isPad : NO)
//判断iphone6\7\8 Plus系列，5.5寸屏 414*736
#define kiPhone_55 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size) && !isPad : NO)

//判断iPHoneXr系列，6.1寸屏，刘海 414*893
#define IS_IPHONE_X_61 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(828, 1792), [[UIScreen mainScreen] currentMode].size) && !isPad : NO)
//判断iPhoneX系列，5.8寸屏，刘海  375*812
#define IS_IPHONE_X_58 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) && !isPad : NO)
//判断iPhoneX Max系列，6.5寸屏，刘海  414*896
#define IS_IPHONE_X_65 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2688), [[UIScreen mainScreen] currentMode].size) && !isPad : NO)


#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface AKUIManager : NSObject

+ (instancetype)shared;

- (CGFloat)heightStatusBar;
- (CGFloat)heightNaviBar;

- (CGFloat)heightBottomSafe;
- (CGFloat)heightTabBar;
@end

NS_ASSUME_NONNULL_END
